// Copyright Epic Games, Inc. All Rights Reserved.

#include "NetworkProjectGameMode.h"
#include "NetworkController.h"
#include "NetworkGameSession.h"
#include "BaseThirdPersonCharacter.h"
#include "Kismet/GameplayStatics.h"
#include "Subsystem/GameVersionSubsystem.h"
#include "UObject/ConstructorHelpers.h"

ANetworkProjectGameMode::ANetworkProjectGameMode()
{
	static ConstructorHelpers::FClassFinder<APawn> PlayerPawnBPClass(TEXT("/Game/ThirdPerson/ThirdPersonCPP/Blueprints/ThirdPersonCharacter"));
	if (PlayerPawnBPClass.Class != NULL)
	{
		DefaultPawnClass = PlayerPawnBPClass.Class;
	}
	PlayerControllerClass = ANetworkController::StaticClass();
}

void ANetworkProjectGameMode::PostLogin(APlayerController* NewPlayer)
{
	Super::PostLogin(NewPlayer);
}

TSubclassOf<AGameSession> ANetworkProjectGameMode::GetGameSessionClass() const
{
	return ANetworkGameSession::StaticClass();
}
